package com.saint.server.service;

import com.saint.server.pojo.Admin;
import com.baomidou.mybatisplus.extension.service.IService;
import com.saint.server.pojo.Menu;
import com.saint.server.pojo.RespBean;
import com.saint.server.pojo.Role;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author saint
 * @since 2021-03-05
 */
public interface IAdminService extends IService<Admin> {

    RespBean login(String username, String password, String code, HttpServletRequest request);

    Admin getAdminByUserName(String username);

    /**
    * @Description: 根据用户id查询角色列表
    * @Param: [adminId]
    * @return: java.util.List<com.saint.server.pojo.Role>
    * @Author: zhang chunyu
    * @Date: 2021/3/20
    */ 
    List<Role> getRoles(Integer adminId);

}
